package com.jy.tdata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jy.tdata.entity.BaseMonitor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 监测点 Mapper 接口
 * </p>
 *
 * @author sushaoyou
 * @since 2022-10-12
 */
@Repository
@Mapper
public interface BaseMonitorMapper extends BaseMapper<BaseMonitor> {
    @Select("SELECT * FROM jy_base_monitor where monitor_type = 01 and data_type = '023300'")
    List<BaseMonitor> selectByType();
    @Select("SELECT * FROM jy_base_monitor where monitor_type = 01 and data_type = '023300' and monitor_code = 't1133160015'")
    BaseMonitor selectSign();
}
